<h2><?=$this->ind;?></h2><br/>
    <a href="<?=$this->url(array(
                    'controller'=>'users',
                    'action'=>'add',
                ))?>">Добавить пользователя</a><br/><br/>
    <?php if(count($this->users)):?>
         <table>
            <tr>
                <th>id</th>
                <th>login</th>
                <th>activated</th>
                <th>email</th>
            </tr>
        <?php foreach ($this->users as $user):?>
            <tr>
                <td><?= $user->id;?></td>
                 <td><a href="<?=$this->url(array(
                    'controller'=>'users',
                    'action'=>'view',
                    'id'=>$user->id
                ))?>"><?= $user->username;?></a></td>
                 <td><?= $user->activated;?></td>
                 <td><?= $user->email;?></td>
                <td><a href="<?=$this->url(array(
                    'controller'=>'users',
                    'action'=>'edit',
                    'id'=>$user->id
                ))?>">edit</a></td>
                 <td><a href="<?=$this->url(array(
                    'controller'=>'users',
                    'action'=>'del',
                    'id'=>$user->id
                ))?>">delete</a></td>
            </tr>
        <?php endforeach;?>
       </table>
<p>
       <?php else: echo 'Пользователей пока нет';?></p>
<?php endif; ?>

